<template>
   <div class="Header">
      <div class="left">
        <slot name='left'></slot>
      </div>
      <div class="center">{{title}}</div>
      <div class="right">
        <slot name='right'></slot>
      </div>
  </div>
</template>

<script>

export default {
 props: {
   title: {
     type: String,
     default: '顶部栏'
   }
 }
};
</script>

<style lang="less" scoped>
.Header {
  color:white;
  background-color: rgb(0, 153, 255);
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
}

</style>
